import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import '@/utils/jsonp'
import '@/icons' // icon
import '@/permission' // permission control
import filterPlugin from '@/plugins/filter'
import Print from '@/utils/Print'//打印
import download from '@/utils/download'
// import Print from 'vue-print-nb'//打印
//修改elementui的dialog点击背景遮罩层不消失
ElementUI.Dialog.props.closeOnClickModal.default=false;
Vue.use(Print);  //打印注册
Vue.use(ElementUI)
Vue.use(filterPlugin)
Vue.prototype.download=download;//h5下载重命名文件名
// Vue.prototype.$ptint = Print;
Vue.config.productionTip = false
Vue.prototype.NODE_ENV=process.env.NODE_ENV;
Vue.prototype.VUE_APP_BASE_API=process.env.VUE_APP_BASE_API;
let vueRoot = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
export default vueRoot;